import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.Objects;

class Person {
    protected final Log log = LogFactory.getLog(getClass());
    String name = "";

    int age = 0;

    Address address = new Address();

    public String getName() {
        return this.name;
    }

    public Person(String name) {
        this.name = name;
    }

    void test() {
        log.info("test");
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Person person = (Person) o;
        return age == person.age && Objects.equals(name, person.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age);
    }
}
